package com.googlecode.skald.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.RootLayoutPanel;


/**
 * Main entry point for Skald UI.
 */
public class Skald implements EntryPoint {
    
  protected static GUI gui;
  
  /** Returns an reference to the single GUI instance. */
  public static GUI getGui() {
    return gui;
  }

  /**
   * This is the entry point method.
   */
  public void onModuleLoad() {
    gui = new GUI();
    RootLayoutPanel.get().add(gui);
    Server.sendInit();  
  } 
}
